package com.ying.tests.AAAmode.strategy1.service;

import com.alibaba.fastjson.JSONObject;
import com.ying.tests.AAAmode.strategy1.entity.BusinessLineEnum;

public abstract class BusinessLineService {

    public void process(JSONObject messageJson){
        common();
        getBusinessLineService(messageJson);
    }

    void common() {
        System.out.println("走哪条业务线呢?");

    }

    // 获取对应业务线业务
    protected abstract void getBusinessLineService(JSONObject messageJson);
    // 获取对应业务线
    public abstract BusinessLineEnum businessLineEnum();

}
